//
//  AppDelegate.swift
//  ZYWeibo
//
//  Created by Mac on 15/10/27.
//  Copyright © 2015年 itcast. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        
        //设置全局的颜色
        UINavigationBar.appearance().tintColor = UIColor.orangeColor()
        
        //创建window
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        
        //创建tabBar控制器
        let tabBarVC = ZYMainViewController()
        tabBarVC.tabBar.tintColor = UIColor.orangeColor()
        //设置根控制器
        window?.rootViewController = tabBarVC
        
        
        //显示window
        window?.makeKeyAndVisible()
        
        return true
    }
}

